<template>
  <div class="newMsg" v-if="num > 0">
    {{num}}
  </div>
</template>

<script>
    export default {
      name: "new-msg",
      props: {
        num: {
          type: Number,
          default: 0
        }
      }
    }
</script>

<style scoped lang="scss">
  @import "../../common/sass/mixin";
  .newMsg{
    @include font-dpr(24px);
    color: #ffffff;
    background-color: #ea3323;
    padding: 0 10px;
    text-align: center;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
  }
</style>
